{% from 'macros.html' import static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    {% include 'common/_heads.html' %}
    <title>{% block title %}{% endblock %}</title>
    <link type=text/css rel="stylesheet" href="{{ static('admin/css/cms_base.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename="admin/css/index.css") }}">
    <script src="{{ static('admin/js/cms_base.js') }}"></script>
    {% block head %}{% endblock %}
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
                    aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">考试管理系统</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
                <li>{{ current_user.username }}</li>
                <li><a href="{{ url_for('admin.logout') }}">注销</a></li>
            </ul>
            <form class="navbar-form navbar-right">
                <input type="text" class="form-control" placeholder="查找...">
            </form>
        </div>
    </div>
</nav>
<div class="container-fluid">
    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
            <ul class="nav-sidebar">
{#                <li class="unfold"><a href="">图书管理</a></li>#}
                <li class="nav-group cate-manage unfold"><a href="/admin">考试种类管理</a></li>
                <li class="nav-group item-manage"><a href="/admin/item">考试科目管理</a></li>
                <li class="nav-group fuser-manage"><a href="/admin/fuser">前台用户管理</a></li>
                <li class="nav-group buser-manage"><a href="/admin/buser">后台用户管理</a></li>
            </ul>
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <h1>{% block page_title %}{% endblock %}</h1>
            <div class="main_content">
                <div class="head">
                    <button class="btn btn-success add" data-toggle="modal" data-target="#myModal">添加</button>
                </div>
                {% block main_content %}{% endblock %}
            </div>
        </div>
    </div>
</div>
</body>
</html>